//
//  ILLocalDeviceDataUtil.h
//  IMILabKit
//
//  Created by OrrHsiao on 2022/10/12.
//

#import <Foundation/Foundation.h>


@class ILBaseLocalAckModel;
NS_ASSUME_NONNULL_BEGIN

@interface ILLocalDeviceDataUtil : NSObject

/// json字符串转字典
/// - Parameter jsonString: <#jsonString description#>
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

/// 字典转json字符串
/// - Parameter dict: <#dict description#>
+ (NSString *)convertToJsonData:(NSDictionary *)dict;

/// 返回ack数据解析
+ (ILBaseLocalAckModel *)convertToAckModel:(NSString  *)jsonString;

//int转data
+ (NSData *)int2Data:(int)i;

//data转int
+ (int)data2Int:(NSData *)data;

@end

NS_ASSUME_NONNULL_END
